package com.xyh.staticproxy.Impl;

import com.xyh.staticproxy.UserDao;

/**
 * @Author:kyle
 * @Date:2020/12/11 - 10:10
 * @Project:spring_demo1
 * @Package:com.xyh.dao.Impl
 * @Version:1.0
 */
public class UserDaoProxy implements UserDao {

    private UserDao userDao;

    public UserDaoProxy(UserDao userDao) {
        this.userDao = userDao;
    }

    public void show() {
        System.out.println("经纪人静态代理前。");
        userDao.show();
        System.out.println("经纪人静态代理后。");
    }
}
